package com.ultimatech.wxservice.web;

import net.coobird.thumbnailator.Thumbnails;

import java.io.File;
import java.io.IOException;

/**
 * Created by zhangleping on 2017/6/5.
 */
public class ImageCompress {

//    public static void main(String[] arg){
//        File origin=new File("./webapp/src/main/resources/static/images/bg.jpg");
//        File comprs=new File("./webapp/src/main/resources/static/images/bg_comprs.jpg");
//        try {
//            Thumbnails.of(origin).scale(0.5f).toFile(comprs);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//    }

}
